package tests;

import common.Utils;
import org.openqa.selenium.By;

public class ListPage extends Utils {
    public static String url = "http://8.137.19.140:9090/blog_login.html";

    public ListPage() {
        super(url);
    }
    public void ListByLogin(){
        //登录账号
        driver.navigate().refresh();
        driver.findElement(By.cssSelector("#username")).sendKeys("zhangsan");
        driver.findElement(By.cssSelector("#password")).sendKeys("123456");
        driver.findElement(By.cssSelector("#submit")).click();
        //看看个人信息模块有木有
        driver.findElement(By.cssSelector("body > div.container > div.left > div"));
        //看看菜单模块有木有
        driver.findElement(By.cssSelector("body > div.nav > a:nth-child(6)"));
        //看看博客列表模块有木有
        driver.findElement(By.cssSelector("body > div.container > div.right"));
    }

}
